import unittest

from parameterized import parameterized

from build_data import build_data


def add(a, b):
    return a + b
# def build_data():
#     res=([(10, 20, 30), (100, 200, 300), (1000, 2000, 3000)])
#     return res


class Test_add(unittest.TestCase):
    @parameterized.expand(build_data())
    def test_add(self, a, b, emp):
        print("a={},b={},exp={}".format(a, b, emp))

        res = add(a, b)
        self.assertEqual(emp, res)



# def test02_add(self):
#     res=add(10,40)
#     self.assertEqual(50,res)
# def test03_add(self):
#     res=add(30,50)
#     self.assertEqual(80,res)
